<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>我的地址</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
   
  </head>
  <body style="background-color:#eee; " >
     <div>
     <h3 class="sub-header">我的地址</h3>
	</div>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>地址</th>
                  <th>真实姓名</th>
				  <th>联系方式</th>
			      <th>删除</th>
			      <th>修改</th>
			
                </tr>
              </thead>
              <tbody>
			  <c:forEach items="${requestScope.allAddress}" var="address">
                <tr>
                  <td style="text-align:center; line-height:50px;"><span style="float:left">${address.address}</span></td>
                  <td style="text-align:center; line-height:50px;"><span style="float:left">${address.realName}</span></td>
                  <td style="text-align:center; line-height:50px;"><span style="float:left">${address.phone}</span></td>
			   <td style="text-align:center; line-height:50px;"><a
						href="${pageContext.request.contextPath}/user_delete?address.addressId=${address.addressId} "><span style="float:left">删除</span></a></td>
			   <td style="text-align:center; line-height:60px;"><a
						href="${pageContext.request.contextPath}/user_viewOneAddress?address.addressId=${address.addressId} "><span style="float:left">修改</span></a></td>
			   
                </tr>
				</c:forEach>
              </tbody>
            </table>
          </div>
		<div><a href="${pageContext.request.contextPath}/user/addAddress.jsp"><input type="button" value="增加" style="color:#FF0000;"></a></div>
      
     
    <script src="../js/jquery-3.0.0.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
  </body>
</html></em>